package com.chennan.spring.demo.annotation.imports;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author chennan
 * @create 2021-11
 */
@Configuration
@Import(value = MyImportSelector.class)
public class ConfigurationTestImport {
//    @Bean
//    public Person person(){//默认拿的是方法名称
//        return new Person();
//    }

    @Bean
    public MyFactoryBean monkey(){
        return new MyFactoryBean();
    }

}
